home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / BORL_TIP / TI100 / TI426.ASC < prev    next >
Text File  |  1994-10-03  |  2KB  |  95 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.   PRODUCT  :  Pascal                                 NUMBER  :  426
  8.   VERSION  :  All
  9.        OS  :  DOS
  10.      DATE  :  September 30, 1994                       PAGE  :  1/2
  11.  
  12.     TITLE  :  DATABASE TOOLBOX SUGGESTIONS AND CORRECTIONS
  13.  
  14.  
  15.  
  16.  
  17. This handout addresses some  problems which have been reported by
  18. users of the Turbo Pascal DataBase ToolBox version 4.0 for use with
  19. Turbo Pascal 4.0.
  20.  
  21. Correction
  22.  
  23. When accessing an Index File that allows duplicate  keys  and has
  24. greater than 32K records, the  Index  Key  routines,  FindKey and
  25. SearchKey will be  unsuccessful  in finding keys for records past
  26. 32K.  By making the following changes to TACCESS.PAS, this proble
  27.  
  28. 1.    In  the TaCompKeys procedure change the old code to look as
  29. follows:
  30.  
  31. begin
  32.   if TaKeyStr(K1) = TaKeyStr(K2) then
  33.   begin
  34.     if not Dup or (DR1 = DR2) then
  35.       TaCompKeys := 0
  36.     else
  37.       if DR1 > DR2 then
  38.         TaCompKeys := 1
  39.       else
  40.         TaCompKeys := -1;
  41.   end
  42.   else
  43.     if TaKeyStr(K1) > TaKeyStr(K2) then
  44.       TaCompKeys := 1
  45.     else
  46.       TaCompKeys := -1;
  47. end;
  48.  
  49.  
  50. 2.   Save  the    changes to TACCESS.PAS.  Call TaBuild  for each
  51. .TYP file to  create a new  TACCESS.TPU file.  Rebuild  all Index
  52. Files.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.   PRODUCT  :  Pascal                                 NUMBER  :  426
  68.   VERSION  :  All
  69.        OS  :  DOS
  70.      DATE  :  September 30, 1994                       PAGE  :  2/2
  71.  
  72.     TITLE  :  DATABASE TOOLBOX SUGGESTIONS AND CORRECTIONS
  73.  
  74.  
  75.  
  76.  
  77. Recommended Suggestion
  78.  
  79. Users have reported unusual errors  occurring  in  their DataBase
  80. ToolBox programs.  Many of these errors can be solved  by running
  81. TaBuild with the  /W+  option  to  display  the  worksheet.   The
  82. worksheet will show that 1,000  records will be the expected size
  83. of
  84.  
  85. For existing Data Files, where  greater  than  1,000  records are
  86. expected, it is recommended  that  you  build  a new TACCESS unit
  87. using  the  worksheet  to set the maximum number of records. This
  88. requires that all Index Files be rebuilt.
  89.  
  90.  
  91. DISCLAIMER: You have the right to use this technical information
  92. subject to the terms of the No-Nonsense License Statement that
  93. you received with the Borland product to which this information
  94. pertains.
  95.